# application/models/system/dict_data.py
from sqlalchemy import Column, BigInteger, String, Integer, CHAR, DateTime
from application.models.base import Base

class SysDictData(Base):
    __tablename__ = "sys_dict_data"

    dict_code = Column(BigInteger, primary_key=True, comment="字典编码")
    tenant_id = Column(String(20), default="000000", comment="租户编号")
    dict_sort = Column(Integer, default=0, comment="字典排序")
    dict_label = Column(String(100), default="", comment="字典标签")
    dict_value = Column(String(100), default="", comment="字典键值")
    dict_type = Column(String(100), default="", comment="字典类型")
    css_class = Column(String(100), comment="样式属性（其他样式扩展）")
    list_class = Column(String(100), comment="表格回显样式")
    is_default = Column(CHAR(1), default="N", comment="是否默认（Y是 N否）")

     # 表注释
    __table_args__ = {"comment": "字典数据表"}